/**
 * 
 */
import thunk from 'redux-thunk'

import {
    createStore,
    applyMiddleware
} from 'redux'
import {
    counter
} from './reducers.jsx'

// 生成一个store 对象

const store = createStore(counter, applyMiddleware(thunk)) // 内部会第一次调用reducer 函数 得到初始的state

export default store